package com.keensense.vcm.common.parser;

/**
 * @author lanjian
 * @date 2020/4/29
 */
public interface RequestParser<T> {
    /**
     * Converts the result from stream to a java object.
     *
     * @param request
     *            The stream of the result.
     * @return The java Type T object that the result stands for.
     * @throws ResponseParseException
     *             Failed to parse the result.
     */
    public String parse(Object request) throws RequestParseException;
}